package com.qqtech.qquan.pub.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class PubPromotion extends BaseDomain {
	/**
	 * 创建者id
	 */
	private Integer creatorId;

	// columns START
	/** 目标类型promotionTargetTypeEnum:1-圈子; */
	private Integer targetBizzType;

	/** 推广到的业务目标ID（如圈子-圈子id,社区-社区id） */
	private java.lang.Integer targetBizzId;

	/** 标题 */
	private java.lang.String title;
	/** 根源类型promotionSourceTypeEnum:1-商城产品; */
	private Integer sourceBizzType;
	/** 点击图片url,跳转的源产品id */
	private java.lang.Integer sourceBizzId;
	/** 图片路径 */
	private java.lang.String img;
	/** 自动失效时间 */
	private java.sql.Timestamp autoExpireAt;

	// columns END
	public PubPromotion() {
	}

	public PubPromotion(java.lang.Integer id) {
		this.id = id;
	}

	public java.sql.Timestamp getAutoExpireAt() {
		return this.autoExpireAt;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public java.lang.String getImg() {
		return this.img;
	}

	public java.lang.Integer getSourceBizzId() {
		return this.sourceBizzId;
	}

	public Integer getSourceBizzType() {
		return this.sourceBizzType;
	}

	public java.lang.Integer getTargetBizzId() {
		return this.targetBizzId;
	}

	public Integer getTargetBizzType() {
		return this.targetBizzType;
	}

	public java.lang.String getTitle() {
		return this.title;
	}

	public void setAutoExpireAt(java.sql.Timestamp autoExpireAt) {
		this.autoExpireAt = autoExpireAt;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public void setImg(java.lang.String img) {
		this.img = img;
	}

	public void setSourceBizzId(java.lang.Integer sourceBizzId) {
		this.sourceBizzId = sourceBizzId;
	}

	public void setSourceBizzType(Integer sourceBizzType) {
		this.sourceBizzType = sourceBizzType;
	}

	public void setTargetBizzId(java.lang.Integer targetBizzId) {
		this.targetBizzId = targetBizzId;
	}

	public void setTargetBizzType(Integer targetBizzType) {
		this.targetBizzType = targetBizzType;
	}

	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}
